package net.mhelvens.deltaprofiles.plugins;

import net.mhelvens.deltaprofiles.Condition;
import net.mhelvens.deltaprofiles.R;
import net.mhelvens.deltaprofiles.Condition.FormulaViewAdapter;
import net.mhelvens.deltaprofiles.Condition.OnChanged;
import net.mhelvens.deltaprofiles.R.id;
import net.mhelvens.deltaprofiles.R.layout;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class TimeCondition extends Condition {
	
	@Override
	public void buildFormula(OnChanged oc, FormulaViewAdapter fva, ViewGroup container) {
		View v = ((LayoutInflater)context().getSystemService(Context.LAYOUT_INFLATER_SERVICE))
				.inflate(R.layout.condition_atom, container, false);
		TextView text = (TextView) v.findViewById(R.id.text);
		text.setText("9:00-17:00");
		fva.appendView(v);
	}
	
	@Override
	protected boolean eval() {
		// TODO Auto-generated method stub
		return false;
	}
	
}
